package com.hxj.ecokey.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hxj.ecokey.entity.UserRanking;
import com.hxj.ecokey.mapper.UserRankingMapper;
import com.hxj.ecokey.service.RankingService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RankingServiceImpl extends ServiceImpl<UserRankingMapper, UserRanking> implements RankingService {
    @Override
    public List<UserRanking> getRankingList(Integer rankType){
        return baseMapper.selectRankingList(rankType);
    }
}
